#include <iostream>
#include <string>
#include <cctype>
using namespace std;

int main()
{
    string s;
    getline(cin, s);
    int letters = 0, digits = 0, others = 0;
    for(int i = 0; i < s.size() - 1; i++)
    {
        if(isdigit(s[i]))
            digits++;
        else if(isalpha(s[i]))
            letters++;
        else
            others++;
    }
    cout << "Letters=" << letters << endl;
    cout << "Digits=" << digits << endl;
    cout << "Others=" << others << endl;
}
